import qs from 'qs'
import { axios as request  } from '@/utils/request'

export function getList({params}) {
  return request({
    url: 'api/price-library/check?' + qs.stringify(params, {indices: false, encode: false}),
    method: 'get'
  })
}


export function add({data}) {
  return request({
    url: 'api/price-library',
    method: 'post',
    data
  })
}

export function get({id}) {
  return request({
    url: `api/price-library/${id}`,
    method: 'get'
  })
}

export function edit({data}) {
  return request({
    url: 'api/price-library/line/check',
    method: 'put',
    data
  })
}
